package com.ktjy.pojo.dao;

import com.ktjy.pojo.entity.TRole;


import java.util.List;

public interface RoleMapper {
    //查询全部
    public List<TRole> selRoleAll();

    //根据名称查询
    public List<TRole> selRoleByNameAll(String roleName);

    //根据ID查询
    public TRole selRoleById(int id);

    //查重
    public TRole selRoleByName(String roleName);

    //角色新增
    public int addRole(TRole role);

    //角色修改
    public int updateRole(TRole role);

    //角色删除
    public int delRole(int id);
}
